<div class="home-room-images">
    <?
    $q = $db->query("SELECT * FROM cms_menu WHERE cat = 'he_thong_phong' AND hien_thi = 1 AND parent = 0 ORDER BY thu_tu LIMIT 4");
    ?>
    <? while ($r = $db->fetch($q)) : ?>
        <div class="home-room-image-item">
            <a href="/he-thong-phong/<?=$r['id']?>/<?=lg_string::get_link($r['ten'])?>">
                <img src="/uploads/cms_menu/room_<?=$r['hinh']?>" alt="">
                <span class="home-room-image-title"><?=$r['ten']?></span>
            </a>
        </div>
    <? endwhile; ?>
    <div class="clearfix"></div>
</div>
<div class="home-services">
    <?
    $q = $db->query("SELECT * FROM cms_menu WHERE cat = 'dich_vu' AND hien_thi = 1 AND parent = 0 ORDER BY thu_tu LIMIT 3");
    ?>
    <? while ($r = $db->fetch($q)) : ?>
        <div class="home-service-item">
            <div class="home-service-img">
                <a href="/dich-vu/<?=$r['id']?>/<?=lg_string::get_link($r['ten'])?>"><img src="images/bg-service.png" alt=""></a>
                <img src="/uploads/cms_menu/ser_<?=$r['hinh']?>" />
            </div>
            <h3 class="home-service-title"><?=$r['ten']?></h3>
            <p class="home-service-desc"><?=$r['chu_thich']?></p>
            <a href="/dich-vu/<?=$r['id']?>/<?=lg_string::get_link($r['ten'])?>" class="btn btn-details">Chi tiết</a>
        </div>
    <? endwhile; ?>
    <div class="clearfix"></div>
</div>
